#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
    cin >> a >> b >> c;
    if(a * c <= b) {
        cout << c << endl;
    } else {
        cout << b / a << endl;
    }
}